package com.wzxl.config.shiro;

import lombok.Data;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author rxbyes
 * @version V1.0
 * @package com.wzxl.shiro
 * @description: TODO ( 集成 UsernamePasswordToken 方便扩展 )
 * @date 2017 上午9:14
 */
@Data
public class MyAuthenticationToken extends UsernamePasswordToken {

    private String captcha;

    private boolean loginType;

    public MyAuthenticationToken(String username, String password, boolean rememberMe,
                                 String host, String captcha, boolean loginType) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
        this.loginType = loginType;
    }
}
